DEBUG=-g
SOURCE_FILES=client.cpp KeyPress.cpp ../common/ClientTCP.cpp 
HEADER_FILES=KeyPress.h ../common/ClientProtocol.h ../common/ClientTCP.h ../common/ViewerProtocol.h ../common/ViewerProtocol.h ../common/NetworkException.h
QT_OPTS = -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -lQtCore -lQtGui

all: client 

client: ${SOURCE_FILES} ${HEADER_FILES}
	g++ ${DEBUG} ${QT_OPTS} -ldl ${SOURCE_FILES} -o client 

clean:
	rm -f client

re: clean all

.PHONY: all clean re
